#include "server_main.h"

int main(void){
    //主进程的初始化
    set_sig_pipe();  

    int pid = fork();
    if(pid > 0){
        //父进程
        close(exitpipe[0]);
        wait(NULL);
        exit(0);
    }
    else{
        //子进程
        server_module_loading();
        server_work();
        exit(0);
    }
}